import pyautogui
import pydirectinput
import time
import keyboard
import pygetwindow #兼容旧代码
import pygetwindow as gw
import ctypes
import win32gui
import win32con
import random
import sys
import io
import ctypes
import os
import fileinput
import subprocess
import progressbar
from PIL import ImageGrab,Image
import utils

print(1111)
time.sleep(3)
while True:
    print(2222)
    pydirectinput.keyDown("q")
    pydirectinput.keyDown("w")
    pydirectinput.keyDown("e")
    pydirectinput.keyDown("space")
    pydirectinput.mouseDown(button='left')
    pydirectinput.keyUp("q")
    pydirectinput.keyUp("w")
    pydirectinput.keyUp("e")
    pydirectinput.keyUp("space")
    pydirectinput.mouseUp(button='left')

    # pydirectinput.press("q")#按键
    # pydirectinput.press("w")#按键
    # pydirectinput.press("e")#按键
    # pydirectinput.press("space")#按键
    # pydirectinput.click()#点击